package com.newmainsoftech.dao.entity;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

import com.newmainsoftech.eatestutil.ejbtestutil.AbstractCleanupTestEntityAspect;

@Aspect
public class CleanupTestEntityAspect extends AbstractCleanupTestEntityAspect {
	@Pointcut( value = "execution( @org.junit.Test * com.newmainsoftech.dao.entity..*( ..))")
	public void pointcutAtExecutionOfTestMethod() {
	}
	
	@Pointcut( value 
			= "call( * com.newmainsoftech.eatestutil.ejbtestutil.EntityManagerFacade+.persist( Object)) " 
			+ "|| call( * com.newmainsoftech.eatestutil.ejbtestutil.EntityManagerFacade+.merge( ..))")
	public void pointcutAtPersistingEntity() {}
}
